<!DOCTYPE html>
<html>
<head>
    <title>报名日志表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="手机号码"/>
            </i-col>
            <i-button class="btn btn-primary" @click="query">查询</i-button>
            <i-button class="btn btn-info" @click="handleInvoice">批量处理发票</i-button>
            <div style="display: block;float: right">
            <#if shiro.hasPermission("lanling:signuppaymentlog:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("lanling:signuppaymentlog:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("lanling:signuppaymentlog:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            </div>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <i-form ref="formValidate" :model="signUpPaymentLog" :rules="ruleValidate" :label-width="80"
                class="form-horizontal">

            <Form-item label="请选择科目" prop="signUpSubjectId">
                <i-select v-model="signUpPaymentLog.signUpSubjectId" filterable label-in-value @on-change="signUpSubjectIdChange">
                    <i-option v-for="item in subjectList" :value="item.id"
                              :key="item.id">{{item.signSubjectName}}
                    </i-option>
                </i-select>
            </Form-item>
            <!--<Form-item label="报名科目名称" prop="subjectName">-->
                <!--<i-input v-model="signUpPaymentLog.subjectName" placeholder="报名科目名称"/>-->
            <!--</Form-item>-->
            </Form-item>
            <Form-item label="学员" prop="studentId">
                <i-select v-model="signUpPaymentLog.studentId" filterable label-in-value  @on-change="studentIdChange">
                    <i-option v-for="item in studentList" :value="item.userId"
                              :key="item.userId">{{item.realname}}
                    </i-option>
                </i-select>
            </Form-item>
            <Form-item label="性别" prop="sex">
                <Radio-group v-model="signUpPaymentLog.sex">
                    <Radio label="1">
                        <span>男</span></Radio>
                    <Radio label="2">
                        <span>女</span></Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="身份证" prop="idcard">
                <i-input v-model="signUpPaymentLog.idcard" placeholder="身份证"/>
            </Form-item>
            <Form-item label="手机号码" prop="phone">
                <i-input v-model="signUpPaymentLog.phone" placeholder="报名学员手机号码"/>
            </Form-item>
            <Form-item label="支付金额" prop="paymoney">
                <i-input v-model="signUpPaymentLog.paymoney" placeholder="支付金额"/>
            </Form-item>

            <Form-item label="订单号" prop="ordercode">
                <i-input v-model="signUpPaymentLog.ordercode" placeholder="订单号"/>
            </Form-item>
            <Form-item label="订单状态" prop="state">
                <Radio-group v-model="signUpPaymentLog.state">
                    <Radio label="1">
                        <span>未付款</span></Radio>
                    <Radio label="2">
                        <span>已付款</span></Radio>
                    <Radio label="3">
                        <span>已过期</span></Radio>
                    <Radio label="4">
                        <span>线下退款</span></Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="完成时间" prop="completetime">
                <Date-picker type="datetime" v-model="signUpPaymentLog.completetime" placeholder="订单完成时间"></Date-picker>
            </Form-item>
            <Form-item label="是否以处理" prop="handle">
                <div class="col-sm-10">
                    <Radio-group v-model="signUpPaymentLog.handle">
                        <Radio label="1">
                            <span>是</span></Radio>
                        <Radio label="2">
                            <span>否</span></Radio>
                    </Radio-group>
                </div>
            </Form-item>
            <Form-item label="发票形式" prop="invoiceForm">
                <Radio-group v-model="signUpPaymentLog.invoiceForm">
                    <Radio label="1">
                        <span>电子发票</span></Radio>
                    <!--<Radio label="2">-->
                        <!--<span>纸质发票</span></Radio>-->
                </Radio-group>
            </Form-item>
            <Form-item label="发票类型" prop="invoiceType">
                <Radio-group v-model="signUpPaymentLog.invoiceType" @on-change="invoiceTypeChange">
                    <Radio label="1">
                        <span>个人</span></Radio>
                    <Radio label="2">
                    <span>单位</span></Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="公司名称" prop="companyName" v-if="modalInvoice">
                <i-input v-model="signUpPaymentLog.companyName" placeholder="公司名称"/>
            </Form-item>
            <Form-item label="纳税登记号" prop="taxpayer" v-if="modalInvoice">
                <i-input v-model="signUpPaymentLog.taxpayer" placeholder="纳税登记号"/>
            </Form-item>
            <Form-item label="备注" prop="remark">
                <textarea v-model="signUpPaymentLog.remark" placeholder="备注" :rows="4" style ="width:100%;"></textarea>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
            </Form-item>
        </i-form>
    </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/lanling/signuppaymentlog.js?_${.now?long}"></script>
</body>
</html>